import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsGarbage {
  garbageChemistry: string;
  msdsEntprId?: number;
  id?: number;
  garbageNotice: string;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsGarbageHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsGarbage 信息*/
  public addMsdsGarbage(param: MsdsGarbage): Observable<number> {
    return this.http.post('/msdsGarbage', param, {needSuccessInfo: true});
  }

  /*修改msdsGarbage信息*/
  public editMsdsGarbage(param: MsdsGarbage): Observable<void> {
    return this.http.put('/msdsGarbage', param, {needSuccessInfo: true});
  }

  /*查询msdsGarbage详情*/
  public getMsdsGarbageDetail(msdsEntprId: number): Observable<MsdsGarbage> {
    return this.http.get('/msdsGarbage/' + msdsEntprId);
  }


}
